package com.woniuxy.cloud.carl.carlgoods.client;

import com.woniuxy.cloud.carl.carlgoods.client.dto.MonthSaleDto;
import com.woniuxy.cloud.carl.carlgoods.client.param.AddMothSaleParam;
import com.woniuxy.result.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;
import java.text.ParseException;
import java.util.List;

@FeignClient(contextId = "SaleMonthClient",name="carlgoods")
public interface MonthSaleClient {
@PostMapping("/addMothSale")
    public Result addMothSale() ;
@GetMapping("/allMonthSale")
public Result<List<MonthSaleDto>> allMonthSale();

    @GetMapping("/findMonthSaleByskuId")
    public Result<List<MonthSaleDto>> findMonthSaleByskuId(@RequestParam("skuId") Integer skuId);
}
